package com.anuo.app.common.utils;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.InetAddress;
import java.util.UUID;

public class Utils {
    private static Logger logger = LoggerFactory.getLogger(Utils.class);
    private static String localIp;

    /**
     * 获取UUID
     */
    public static String getUUID() {
        String uuid = UUID.randomUUID().toString().trim().replaceAll("-", "");
        return uuid;
    }

    /**
     * 获取java运行在哪个路径下
     * 参考: https://stackoverflow.com/questions/16239130/java-user-dir-property-what-exactly-does-it-mean
     *
     * @return
     */
    public static String getRunPath() {
        return System.getProperty("user.dir");
    }


    public static void main(String[] args) {


    }
}
